<!doctype html>
<html lang="ch" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<footer th:fragment="com1">this is com1</footer>
<footer id="com2">this is com2</footer>
<!--/*@thymesVar id="user" type="com.test.cities.vo.UserVO"*/-->
<div th:text="${user.getUsername()}"></div>

<div th:fragment="com3(message)">
    <p th:text="${message}"></p>
</div>
<div th:fragment="com4(message)">
    <p th:replace="${message}">原本的message</p>
</div>
<!--<div th:insert="~{component::com4(~{::#message})}">-->
<!--    <p id="message">替换的message</p>-->
<!--</div>-->
</body>
</html>